#ifndef _FROMCONTAINSFILTER_H_
#define _FROMCONTAINSFILTER_H_

#include <string>

#include <filter/PacketFilter.h>

/**
 * Filters for packets where the "from" field contains a specified value.
 *
 * @author Matt Tucker
 */
class FromContainsFilter : public PacketFilter {
public:

    /**
     * Creates a "from" contains filter using the "from" field part.
     *
     * @param from the from field value the packet must contain.
     */
    FromContainsFilter(std::string from);
	bool accept(Packet * packet);
private:
	std::string from;
};
#endif // -- _FROMCONTAINSFILTER_H_
